﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin/Admin.master" AutoEventWireup="true" CodeFile="QLChiTietDatTour.aspx.cs" Inherits="Admin_Tour_QLChiTietDatTour" %>

<%@ Register Assembly="PagerControl" Namespace="CutePager" TagPrefix="cc1" %>
<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="cc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HomePlaceHolder" Runat="Server">
     <script language="javascript" type="text/javascript">
         var GB_ROOT_DIR = "../../GREY_BOX/";
         function View_ChiTietDatTour(id) {
             var url = "../Admin/Tour/TTChiTietDatTour.aspx?id=" + id;
             return GB_showCenter('Xem Chi tiết đặt Tour', url, 800, 520);
         }

    </script>
    <script type="text/javascript" src="../../GREY_BOX/AJS.js"></script>
    <script type="text/javascript" src="../../GREY_BOX/AJS_fx.js"></script>
    <script type="text/javascript" src="../../GREY_BOX/gb_scripts.js"></script>
    <div class="hrm_header_placeholder">
        Chi tiết đặt Tour</div>
    <div style="padding: 10px; height:auto;">
        <asp:Panel ID="Panel1" Width="100%" GroupingText="Tìm kiếm thông tin" runat="server">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td colspan="8" height="10">
                    </td>
                </tr>
                <tr>
                    <td width="20">
                    </td>
                    <td width="70" class="hrm_title_blue">
                        Tên công ty
                    </td>
                    <td width="7" class="hrm_title_blue">
                        :
                    </td>
                    <td width="170">
                        <asp:TextBox ID="txtTenCongTy" CssClass="hrm_textbox" Width="170px" MaxLength="50" runat="server"></asp:TextBox>
                    </td>
                    <td width="20">
                    </td>
                    <td width="70" class="hrm_title_blue">
                        Địa chỉ
                    </td>
                    <td width="7" class="hrm_title_blue">
                        :
                    </td>
                    <td width="170">
                        <asp:TextBox ID="txtDiachi" CssClass="hrm_textbox" Width="170px" MaxLength="50" runat="server"></asp:TextBox>
                    </td>
                    <td width="20">
                    </td>
                    <td>
                        <asp:ImageButton ID="cmdTimKiem" ImageUrl="~/Images/tim.jpg" CausesValidation="false"
                            runat="server" OnClick="cmdTimKiem_Click" />
                        <asp:ImageButton ID="cmdTimLai" CausesValidation="false" ImageUrl="~/Images/timlai.jpg"
                            runat="server" OnClick="cmdTimLai_Click" />
                    </td>
                </tr>
            </table>
        </asp:Panel>
        <asp:Panel ID="PanelList" Width="100%" GroupingText="Danh sách" runat="server">
            <table border="0" width="100%" cellpadding="0" cellspacing="0">
                <tr>
                    <td width="20">
                    </td>
                    <td style="padding-right: 15px">
                        <asp:Panel ID="PanelGrid" Width="100%" runat="server">
                            <br />
                            <asp:GridView ID="gridCatalog" runat="server" DataKeyNames="Id" Width="100%" BackColor="White"
                                OnRowDataBound="gridCatalog_RowDataBound" EmptyDataText="<br><center>Không tồn tại dữ liệu</center><br>"
                                BorderColor="#CCCCCC" AutoGenerateColumns="false" BorderStyle="Solid" BorderWidth="1px"
                                CellPadding="3">
                                <Columns>
                                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" HeaderText="STT" ItemStyle-Width="30">
                                    <ItemTemplate>
                                        <asp:Label ID="Label1" runat="server" Text='<%# Container.DataItemIndex + 1 %>'></asp:Label>
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                </asp:TemplateField>
                                <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center" ItemStyle-Width="30" 
                                    HeaderText="Chọn">
                                    <ItemTemplate>
                                        <asp:CheckBox ID="chkSelect" runat="server" />
                                        <asp:HiddenField ID="H_IdCatalog" runat="server" Value='<%# Eval("Id") %>' />
                                    </ItemTemplate>
                                    <ItemStyle HorizontalAlign="Center" Width="30px" />
                                </asp:TemplateField>
                                    <asp:BoundField DataField="Id" Visible="false" HeaderText="Id">
                                    </asp:BoundField>
                                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                                        HeaderText="Xem chi tiết" ItemStyle-Width="10%">
                                        <ItemTemplate>
                                            <a href="#" class="command_button" onclick="JavaScript:View_ChiTietDatTour('<%# Eval("Id")%>')">
                                                <asp:Image ID="imagexemchitiet" runat="server" ImageUrl="~/Images/detail.png" ToolTip="Click để xem chi tiết" /></a>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:TemplateField HeaderText="Tiêu đề Tour" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="12%">
                                        <ItemTemplate>
                                            <asp:Label ID="lbTieuDeTour1" CssClass="ogiua" runat="server" Text='<%# GetTieuDe(Eval("IdTour")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="TenCongTy" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="13%" HeaderText="Tên công ty"></asp:BoundField>
                                    <asp:BoundField DataField="HoTen" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="13%" HeaderText="Họ tên">
                                    </asp:BoundField>
                                    <asp:BoundField DataField="DienThoai" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="13%" HeaderText="Điện thoại"></asp:BoundField>
                                    <asp:BoundField DataField="ThuDienTu" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="13%" HeaderText="Email"></asp:BoundField>
                                    <asp:BoundField DataField="MaSoThue" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="13%" HeaderText="Mã số thuế"></asp:BoundField>
                                    <asp:BoundField DataField="DiaChi" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="13%" HeaderText="Địa chỉ"></asp:BoundField>
                                    <asp:TemplateField HeaderText="Loại thanh toán" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="12%">
                                        <ItemTemplate>
                                            <asp:Label ID="lbTieuDeTour" CssClass="ogiua" runat="server" Text='<%# GetLoaiThanhToan(Eval("IdThanhToan")) %>'></asp:Label>
                                        </ItemTemplate>
                                    </asp:TemplateField>
                                    <asp:BoundField DataField="DiDong" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center" ItemStyle-Width="13%" HeaderText="Di động"></asp:BoundField>
                                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                                        HeaderText="Ngày cập nhật" ItemStyle-Width="90">
                                        <ItemTemplate>
                                            <asp:Label ID="LabelNgayCapNhat" runat="server" Text='<%# Convert.ToDateTime(Eval("NgayCapNhat")).ToString("dd/MM/yyyy")%>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="12%" />
                                    </asp:TemplateField>
                                    <asp:TemplateField ItemStyle-HorizontalAlign="Center" HeaderStyle-HorizontalAlign="Center"
                                        HeaderText="Đã đọc" ItemStyle-Width="8%">
                                        <ItemTemplate>
                                            <asp:Label ID="LbTrangThai" runat="server" Text='<%# (Eval("TrangThai").ToString())=="True" ? "<html><img src=../../Images/checkk.png /></html>" : "<html><img src=../../Images/redx.png /></html>"%>'></asp:Label>
                                        </ItemTemplate>
                                        <ItemStyle HorizontalAlign="Center" Width="8%" />
                                    </asp:TemplateField>
                                </Columns>
                                <RowStyle ForeColor="#000066" />
                                <SelectedRowStyle BackColor="#dedfdf" Font-Bold="True" ForeColor="Gray" />
                                <HeaderStyle BackColor="#006699" Font-Bold="True" HorizontalAlign="Left" ForeColor="White" />
                            </asp:GridView>
                        </asp:Panel>
                    </td>
                </tr>
                <tr>
                    <td colspan="2" height="10">
                        <cc1:Pager ID="Pager1" runat="server" PreviousClause="" NextClause="" LastClause=""
                            FirstClause="" PageClause="Trang" OfClause="/" PageSize="10" OnCommand="Pager1_Command">
                        </cc1:Pager>
                    </td>
                </tr>
            </table>
        </asp:Panel>
    </div>
    <asp:Panel ID="Panel2" CssClass="div_footer" BackColor="#d6e6f5" runat="server" Height="24px">
        <table border="0" cellpadding="0" cellspacing="0" width="100%">
            <tr>
                <td>
                    <asp:ImageButton ID="cmdXoa" CausesValidation="false" OnClientClick="return Xoa_Tour();"
                        ImageUrl="~/Images/xoa.jpg" runat="server"  OnClick="cmdXoa_Click" />
                </td>
            </tr>
        </table>
    </asp:Panel>
</asp:Content>

